package com.hua.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hua.pojo.Comment;
import com.hua.vo.WriteCommentData;

import java.util.List;

/**
 * @author ONE-X
 * @date 2020/11/10
 */
public interface CommentService extends IService<Comment> {
	/**
	 * 获取回复问题数量
	 * @param uid
	 * @return
	 */
	Integer findQuestionByAuthorCount(String uid);

	/**
	 * 新增评论
	 * @param commentData
	 */
	void addComment(WriteCommentData commentData);
	/**
	 * 获取问题的回复
	 */

	List<Comment> findCommentQuestion(String uid);

	/**
	 * 获取博客的回复
	 */
	List<Comment> findCommentBlog(String uid);
}
